<template>
  <div class="app-container">
    <DetailPage :model-name="modelName" :rec-id="recId" />
    <!-- <DetailPage :model-name="modelName" :child-field-name="childFieldName" /> -->
  </div>
</template>

<script>
import DetailPage from '@/selfComponents/DetailPage'
import odoo from '@/odooapi'
const modelName = 'Test/ResUsersDetail'
// const childFieldName = ''

export default {
  name: 'Home',
  components: { DetailPage },
  directives: {},
  filters: {},

  data() {
    return {
      modelName: modelName,
      // childFieldName: undefined // childFieldName
      recId: 0
    }
  },

  async created() {
    const userInfo = odoo.get_userinfo()
    // console.log('xxxx, me:', userInfo)
    this.recId = userInfo.uid
  },

  methods: {}
}
</script>
